package com.my.db.test.mybatis.enums.defal;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author timo 2021/3/29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EnumItem<T> {
    private T itemKey;
    private String itemValue;
    private String itemCN;
    private String itemEN;
    //索引
    private int index;

    public EnumItem(T itemKey, String itemValue) {
        this.itemKey = itemKey;
        this.itemValue = itemValue;
    }

    public EnumItem(T itemKey, String itemValue, int index) {
        this.itemKey = itemKey;
        this.itemValue = itemValue;
        this.index = index;
    }
}
